package com.ruoyi.order.feign;

import com.ruoyi.order.feign.fallback.ProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name ="product-service",fallback = ProductFeignFallback.class)
public interface ProductFeign {
    @GetMapping("/product/{id}")
    String product(@PathVariable("id") Long id);
}
